/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-11-16 09:41:14
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-12-21 09:20:43
 * @FilePath: \sample_project\components\led.c
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */
#include <stdio.h>
#include "driver/gpio.h"
#include "led.h"

void led_init(void)
{
    // gpio_reset_pin(GPIO_NUM_2);
    // gpio_set_direction(GPIO_NUM_2, GPIO_MODE_OUTPUT);
    gpio_reset_pin(GPIO_NUM_27); // 干接点指示灯 R17
    gpio_set_direction(GPIO_NUM_27, GPIO_MODE_OUTPUT);
}

void led_statue(uint32_t state)
{
    // gpio_set_level(GPIO_NUM_2, state);
    // gpio_set_level(GPIO_NUM_32, state);
}